#include <iosteam>
#include "Vector.h"

int main()
{
    Vector<int> A(10);
    cout << A.capacity() << endl;
    A.resize(32);
    cout << A.capacity() << endl;
    for (int i = 0; i < 20; i++)
	A[i] = i * i;
    //Vector<int>::iterator A1 = A.begin();//与下同义，新版本中，auto自动辨别A1类型，begin函数化，需要-std
    auto A1 = begin(A);
    auto A2 = end(A);
    for (;A1 != A2; ++A1)
	cout << *A1 << ", ";
    cout << "\b\b" <<endl;
    //Vector为名空间故加Vector<>::，不同类都有同一个迭代器接口以起到万能效果，其本质是调用类功能
    return 0;
}
